package cn.wolfcode.crm.web.controller;

import cn.wolfcode.crm.qo.EmployeeQueryObject;
import cn.wolfcode.crm.qo.GiftQueryObject;
import cn.wolfcode.crm.qo.PageResult;
import cn.wolfcode.crm.service.IGiftService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("exchangeGift")
public class ExchangeGiftController {
    @Autowired
    private IGiftService giftService;
    @RequestMapping("view")
    public String view(){
        return "gift/exchangeGift";
    }
    @RequestMapping("queryGift")
    public PageResult queryGift(GiftQueryObject qo){
        PageResult pageResult = giftService.query(qo);
        return pageResult;
        
    }
}
